package com.android.nearshop.business.model;

import java.io.Serializable;
import java.util.ArrayList;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-8-22
 * @see : findShop 的条件封装
 * @Copyright : copyrights reserved by personal 2007-2011
 **********************************************************/
public class FindCondition implements Serializable
{
    private static final long serialVersionUID = -4422284428680029738L;
    public double lon;
    public double lat;
    public int areaId;
    public ArrayList<Integer> cateList;
    
    public FindCondition(double lon, double lat, int areaId, ArrayList<Integer> cateList)
    {
        this.lon = lon;
        this.lat = lat;
        this.areaId = areaId;
        this.cateList = cateList;
    }
    
    public boolean isValid()
    {
        return lon > 0 && lat > 0;
    }
}
